//
//  IMConstants.h
//  MLIM
//
//  Created by molon on 15/7/9.
//  Copyright (c) 2015年 molon. All rights reserved.
//

#ifndef MLIM_IMConstants_h
#define MLIM_IMConstants_h

@class IMConversation;
@class IMUser;
@class IMMessage;
@class IMConversationViewController;
@class IMConversationListViewController;

typedef enum : NSInteger {
    IMManagerStatusNone = 0, //啥也没做
    IMManagerStatusConnected, //已连接
    IMManagerStatusPaused, //网络断开中
    IMManagerStatusConnecting, //连接中
} IMManagerStatus;

typedef void (^IMBooleanResultBlock)(BOOL succeeded, NSError *error);
typedef void (^IMIntegerResultBlock)(NSInteger number, NSError *error);
typedef void (^IMArrayResultBlock)(NSArray *objects, NSError *error);
typedef void (^IMDictionaryResultBlock)(NSDictionary *dict, NSError *error);
typedef void (^IMConversationResultBlock)(IMConversation *imConv, NSError *error);
typedef void (^IMUserResultBlock)(IMUser *imUser, NSError *error);

#endif
